package com.bdqn.t313.jdkdynamicproxy;

import org.junit.Test;

public class JdkDynamicProxy {

    @Test
    public void jdkDynamicProxyTest(){
        //调用工厂方法生成代理对象
        ITeacherDao iTeacherDao = IntermediaryJdkProxyFactory.create(new SportTeacherDao());
        iTeacherDao.teach();
    }
}
